package pl.edu.pjwstk.kor.database.init;

import java.util.List;
import java.util.Random;

public abstract class AbstractDataInitalizer<T> {
	protected final Random random = new Random(System.nanoTime());
	
	protected static <T> T selectRandom(List<T> list, Random random) {
		int index = random.nextInt(list.size());
		return list.get(index);
	}
	
	public abstract List<T> initData() throws Exception;
}
